package com.sk.sqd.adapter;

import com.sk.sqd.adapter.two.*;

/**
 * 双向适配器客户端
 */
public class TwoWayAdapterTest {

    public static void main(String[] args) {
        TwoWayAdaptee adaptee = new AdapteeRealize();
        TwoWayTarget target = new TwoWayAdapter(adaptee);
        target.request();
        System.out.println("~~~~~~~~~~~~~");
        target = new TargetRealize();
        adaptee = new TwoWayAdapter(target);
        adaptee.specificRequest();
    }

}
